]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Fix submenu signal connector leak
authorSebastian Keller <skeller@gnome.org>
Mon, 14 Sep 2026 02:00:50 +0000 (04:00 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 14 Sep 2026 12:31:31 +0000 (14:31 +0200)
commit14dc41d85593dbba361d9302a320c4078450b73f
tree320a9f0d2ec09ff9d7ef220e01b5ff4f7f6e0119
parent926395681e4073b47df25de5f68ad6b0a812c092
popupMenu: Fix submenu signal connector leak

Neither `PopupMenuBase` nor the `PopupSubMenu` that is used as `menu` of
`PopupSubMenuMenuItem` is destroyable, so the connection needs to be
manually disconnected when the `PopupSubMenu` is destroyed, otherwise
the signal tracker and with it the `PopupSubMenu` is being leaked.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4426>
(cherry picked from commit 4a0d2e424a4b37ab6264e871a92044c8b83cc5fe)
js/ui/popupMenu.js